package com.djx.user.service.impl;

import com.djx.common.domain.User;
import com.djx.common.result.Result;
import com.djx.user.mapper.UserMapper;
import com.djx.user.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpRequest;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;
    @Override
    public Result<User> findUser(User user) {
        User findUser=userMapper.findUser(user);
        return Result.success(findUser);
    }
}
